﻿using BasecampRestAPI;
using NUnit.Framework;

namespace TestBasecampRestAPI
{
	[TestFixture]
	public class TestAttachment
	{
		[Test]
		public void Construct()
		{
			const string uploadId = "upload-45";
			const string originalFileName = "readme.txt";
			IAttachment attachment = Attachment.GetInstance(uploadId, originalFileName);
			Assert.IsNotNull(attachment);
			Assert.AreEqual(uploadId, attachment.UploadId);
			Assert.AreEqual(originalFileName, attachment.OriginalFileName);
		}
	}
}
